<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>
<form id="pagerForm" method="post" action="${ctx }/account/user.action">
	<input type="hidden" name="status" value="${param.status}">
	<input type="hidden" name="keywords" value="${param.keywords}" />
	<input type="hidden" name="pageNum"  value="${page.pageNo}" />
	<input type="hidden" name="numPerPage" id="numPerPage" value="${page.pageSize}" />
	<input type="hidden" name="orderField" value="${param.orderField}" />
	
	<input type="hidden" name="page.pageNo" id="pageNo" value="${page.pageNo}"/>
	<input type="hidden" name="page.orderBy" id="orderBy" value="${page.orderBy}"/>
	<input type="hidden" name="page.order" id="order" value="${page.order}"/>
	<input type="hidden" name="page.pageSize" id="pageSize" value="${page.pageSize}"/>
</form>

<div class="page">
	<div class="pageHeader">
		<form onsubmit="return navTabSearch(this);" action="${ctx }/account/user.action" method="post">
		<div class="searchBar">
			<ul class="searchContent">
				<li>
					<label>登录名：</label>
					<input type="text" name="filter_LIKES_loginName" value="${param['filter_LIKES_loginName']}"/>
				</li>
				<li>
					<label>姓名：</label>
					<input type="text" name="filter_LIKES_name" value="${param['filter_LIKES_name']}"/>
				</li>
				<li>
					<label>手机：</label>
					<input type="text" name="filter_LIKES_mobile" value="${param['filter_LIKES_mobile']}"/>
				</li>
				<!-- 
				<li>
					<label>电子邮件：</label>
					<input type="text" name="filter_LIKES_email" value="${param['filter_LIKES_email']}"/>
				</li>
				<li>
					<label>部门：</label>
					<input type="text" name="filter_LIKES_organization_name" value="${param['filter_EQS_organization_name']}" size="30" />
				</li>
				 -->
			</ul>
			<div class="subBar">
				<ul>
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit"> 检 索 </button></div></div></li>
				</ul>
			</div>
		</div>
		</form>
	</div>
	<div class="pageContent">
		<div class="panelBar">
			<ul class="toolBar">
				<li><a class="add" href="${ctx }/account/user!input.action" target="navTab" title="添加用户"><span>添加</span></a></li>
				<li><a  class="delete" href="${ctx}/account/user!delete.action?id={userId}" target="navTabTodo" title="确定要删除吗?"><span>删除</span></a></li>
				<li><a  class="edit" href="${ctx}/account/user!input.action?id={userId}"  target="navTab" title="修改用户"><span>修改</span></a></li>
				<li class="line">line</li>
			</ul>
		</div>
		<table class="table" layouth="142">
			<thead>
				<tr>
				<th>登录名</th>
				<th>姓名</th>
				<th>部门</th>
				<th>电邮</th>
				<th>手机</th>
				<th>角色</th>
				</tr>
			</thead>
			<tbody>
				<s:iterator value="page.result">
					<tr target="userId" rel="${id}">
						<td>${loginName}</td>
						<td>${name}</td>
						<td>${organization.name}</td>
						<td>${email}</td>
						<td>${mobile}</td>
						<td>${roleNames}</td>
					</tr>
		</s:iterator>	
			</tbody>
		</table>
		<div class="panelBar">
			<div class="pages">
				<span>显示</span>
				<select name="numPerPage" id="showNumPerPage" onchange="$('#pageSize').val($(this).val());navTabPageBreak({numPerPage:this.value})">
					<option value="14">14</option>
					<option value="20">20</option>
					<option value="50">50</option>
					<option value="100">100</option>
				</select>
				<span>条，共${page.totalCount}条</span>
			</div>
			
			<div class="pagination" targetType="navTab" totalCount="${page.totalCount}" numPerPage="${page.pageSize}" pageNumShown="10" currentPage="${page.pageNo}"></div>

		</div>
	</div>
</div>